let buffer=new Buffer('abcdefg');
console.log(buffer.slice(2).toString());//cdefg
console.log(buffer.slice(2,3).toString());//c   包头不包尾
console.log(buffer.slice(2,buffer.length-1).toString());//cdef 包头不包尾
